import request from '@/utils/request'

// 获取消息
export const getNewsList = (data) => {
  return request({
    url: '/wechat/message/selectPage',
    method: 'post',
    data
  })
}


// 提交消息
export const addNews = (data) => {
  return request({
    url: '/wechat/message/release',
    method: 'post',
    data
  })
}

// 根据materialId获取图片或视频消息
export const getByMaterialId = (materialId) => {
  return request({
    url: `/wechat/materialLib/getByMaterialId/${materialId}`,
    method: 'post',
  })
}


export const deleteNews = (ids) => {
  return request({
    url: '/wechat/message/removeBatch/'+ids,
    method: 'post',
  })
}

